package cn.chen.dao.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
public class Comment {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String content; //评论内容

    private Long createDate;//评论时间

    private Long articleId; //评论那篇文章

    private Long authorId;  //谁评论

    private Long parentId;  //对评论的评论

    private Long toUid;     //对谁评论

    private Integer level;  //(暂时有2层)
}